from django.urls import re_path
from . import views

urlpatterns = [
    # 用户中心
    re_path(r'^api/v1.0/user$', views.UserCenter.as_view()),
    re_path(r'^api/v1.0/user/avatar$', views.UserCenter.as_view()),
    re_path(r'^api/v1.0/user/name$', views.UserCenter.as_view()),
    re_path(r'^api/v1.0/user/auth$', views.UserAuthentication.as_view()),
    # 用户登录与注册
    re_path(r'^api/v1.0/users$', views.RegisterView.as_view()),
    re_path(r'^api/v1.0/session$', views.LoginView.as_view()),


]
